# -*- coding: utf-8 -*-
""" TCP client """
import socket

target_host = "127.0.0.1"
target_port = 80

#建立一个socket对象
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

#发送一些数据
client.sendto("aaaaaaa",(target_host,target_port))

#接受一些数据
data, addr = client.recv(4096)

print data 